{extend name="default/base/base_seller" /}

{block name="seller_main"}

<form method="post" action="">
    <table class="search-form">
        <tr>
            <td class="w160">
                <select name="used_status">
                    <option value="0" {if $used_status==0}selected{/if}>{$Think.lang.goods_redpacket_use_all}</option>
                    <option value="1" {if $used_status==1}selected{/if}>{$Think.lang.goods_redpacket_use_yes}</option>
                    <option value="2" {if $used_status==2}selected{/if}>{$Think.lang.goods_redpacket_use_no}</option>
                </select>
            </td>

            <td class="tc w70">
                <input type="submit" class="submit" value="{$Think.lang.ds_search}" />
            </td>
        </tr>
    </table>
</form>

<table class="dssc-default-table">
    <thead>
    <tr ds_type="table_header">

        <th class="w30">{$Think.lang.goods_redpacket_id}</th>
        <th class="w30">{$Think.lang.goods_redpacket_goods}</th>
        <th class="w30">{$Think.lang.goods_redpacket_buyser}</th>
        <th class="w30">{$Think.lang.goods_redpacket_amount}</th>
        <th class="w30">{$Think.lang.goods_redpacket_use_status}</th>
        <th class="w30">{$Think.lang.goods_redpacket_get_time}</th>
    </tr>
    </thead>
    <tbody>
    {notempty name="red_log_list"}
    {foreach name="red_log_list" item="val" }
    <tr>
        <td data-value="{$val.id}">{$key+1}</td>
        <td >{$val.goods_name}</td>
        <td >{$val.member_name}</td>
        <td >{$val.get_amount}</td>
        <td >
            {if $val.used_status == 1}
            已使用
            {else}
            未使用
            {/if}

        </td>
        <td >{$val.get_time|date="Y-m-d H:i",###}</td>

    </tr>
    {/foreach}
    <tfoot>
    <tr>
        <td colspan="7"><div class="pagination"> {$show_page}</div></td>
    </tr>
    </tfoot>
    {else /}
    <tr>
        <td colspan="7" class="norecord"><div class="warning-option"><i class="iconfont">&#xe64c;</i><span>{$Think.lang.no_record}</span></div></td>
    </tr>
    {/notempty}
</table>

{/block}
